<?php

use think\facade\Route;
use app\common\middleware\AuthCheckToken;
use app\common\middleware\AllowCrossDomain;
use app\common\middleware\XcxAuthCheckToken;
// 小程序接口
Route::group(function () {

    //小程序登录（获取openid）
    Route::post('actionLogin', 'Login/actionLogin');
    //小程序登录（手机号登录）
    Route::post('phoneLogin', 'Login/Login');
    //发送验证码
    Route::post('sendCode', 'Login/sendVerifyCode');
    
    
    //获取表单设置
    Route::post('getSignup', 'apiclient.Signup/getSignup');

    //申请
    Route::post('apply', 'apiclient.Activity/apply');
    //发送验证码
    Route::post('sendCode', 'apiclient.Activity/sendCode');

    // 用户其他信息
    Route::group('user', function () {
        Route::post('setSellGroups', 'apiclient.Login/setSellGroups');
    })->middleware([AllowCrossDomain::class, XcxAuthCheckToken::class]);

})->middleware([AllowCrossDomain::class]);




